package View;

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Usuario
 */
import javax.swing.JPanel;
      import java.awt.Image;
            import java.awt.Graphics;
            import java.net.URL;
            import javax.imageio.ImageIO;

            public class Fundo2 extends JPanel{

                private Image imgFundo = null;
    @Override
                public void paintComponent(Graphics g){
                    try{
                        imgFundo = ImageIO.read(new URL(getClass().getResource("fundo2.jpg"), "fundo2.jpg"));
                        if(imgFundo != null){
                            g.drawImage(imgFundo, 0, 0, this.getWidth(), this.getHeight(), this);
                        }
                    }catch(Exception e){
                    }
                }

            }
